package com.yxh.lib_base.util.image

import com.yxh.lib_base.ext.lazyNone


/**
 * 图片加载
 * */
class ImageLoadUtils : IImageLoadEngine by mLoadEngine {




    companion object {
        private var mLoadEngine: IImageLoadEngine = object : IImageLoadEngine {}

        private val instance by lazyNone { ImageLoadUtils() }

        @JvmStatic
        fun getEngine() = instance

        @JvmStatic
        fun initEngine(engine: IImageLoadEngine){
            mLoadEngine = engine
        }

    }
}